' 
' Copyright (C) 2014 Infinity CCS Ltd (http://www.infinityccs.com/)
' Copyright (C) 2008 Sasa Coh <sasacoh@gmail.com>
'
' This program is free software; you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation; either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program.  If not, see <http://www.gnu.org/licenses/>. 
'/


Imports System
imports System.Collections.Generic
imports System.Text

Namespace Common.CallLog

  ''' <summary>
  ''' Call record
  ''' </summary>
  Public Class CallRecord
    Private _type As ECallType
    Private _name As String = ""
    Private _number As String = ""
    Private _time As DateTime
    Private _duration As TimeSpan
    Private _count As Integer

    ''' <summary>
    ''' Call name
    ''' </summary>
    Public Property Name As String
      Get
        Return _name
      End Get
      Set(value As String)
        _name = value
      End Set
    End Property

    ''' <summary>
    ''' Call number
    ''' </summary>
    Public Property Number As String
      Get
        Return _number
      End Get
      Set(value As String)
        _number = value
      End Set
    End Property

    ''' <summary>
    ''' Call mode
    ''' </summary>
    Public Property Type As ECallType
      Get
        Return _type
      End Get
      Set(value As ECallType)
        _type = value
      End Set
    End Property

    ''' <summary>
    ''' Duration of call
    ''' </summary>
    Public Property Duration As TimeSpan
      Get
        Return _duration
      End Get
      Set(value As TimeSpan)
        _duration = value
      End Set
    End Property

    ''' <summary>
    ''' Call time
    ''' </summary>
    Public Property Time As DateTime
      Get
        Return _time
      End Get
      Set(value As DateTime)
        _time = value
      End Set
    End Property

    ''' <summary>
    ''' Number of records  
    ''' </summary>
    Public Property Count As Integer
      Get
        Return _count
      End Get
      Set(value As Integer)
        _count = value
      End Set
    End Property
  End Class


End Namespace
